import UrlAnalyzer from "./urlAnalyzer";


class Spider {
    constructor(private analyzer:UrlAnalyzer,private url:string) {

    }
}

const analyzer = new UrlAnalyzer(); // 创建一个组合模式的子类
const url = '';
new Spider(analyzer,url);